package com.hos.net.req.relation;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hos.net.req.BaseReq;
import com.hos.net.res.MsgHint;

/**
 * 解除关系
 * Created by guom on 2018/10/31.
 */
public class RelationDeleteReq extends BaseReq {
    public String relationId;

    @JsonIgnore
    public String hint;

    // (false 检验失败)
    @JsonIgnore
    public boolean isVerifyParameter() {
        if ((relationId == null || relationId.equals("")) &&
                (hint == null || hint.equals(""))) {
            hint = new MsgHint("关系id不能为空").toJson();
            return false;
        }
        return true;
    }
}
